package com.webdev.base.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author huangningshuang
 * @since 2021-12-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ToString
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer goodsId;

    /**
     * 礼品库存
     */
    private Integer goodsCount;

    /**
     * 礼品图片url
     */
    private String goodsImg;

    /**
     * 礼品名称
     */
    private String goodsName;

    /**
     * 礼品描述
     */
    private String goodsDesc;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date startDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date endDate;
}
